import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';
/**
 * 包装管理
 * */
// 打包记录
export const productionLabellingMachineRecordPage = (params) => getRequest('/production/labelling-machine-record/page', params);
export const productionLabellingMachineRecordList = (params) => getRequest('/production/labelling-machine-record/list', params);
export const productionLabellingMachineRecordUpdatePrdNotice = (params) => putRequest('/production/labelling-machine-record/update-prd-notice', params);
// 包装报工
export const productionPackPrdReportCreate = (params) => postRequest('/production/pack-prd-report/create', params);
export const productionPackPrdReportUpdate = (params) => putRequest('/production/pack-prd-report/update', params);
export const productionPackPrdReportGet = (params) => getRequest('/production/pack-prd-report/get', params);
export const productionPackPrdReportPage = (params) => getRequest('/production/pack-prd-report/page', params);
export const productionPackPrdReportGetData = (params) => getRequest('/production/pack-prd-report/get-data', params);
export const productionLabellingMachineRecordGetByDate = (params) => getRequest('/production/labelling-machine-record/get-by-date', params);

// 月末包装报工
export const productionPackPrdMonthReportCreate = (params) => postRequest('/production/pack-prd-month-report/create', params);
export const productionPackPrdMonthReportUpdate = (params) => putRequest('/production/pack-prd-month-report/update', params);
export const productionPackPrdMonthReportGet = (params) => getRequest('/production/pack-prd-month-report/get', params);
export const productionPackPrdMonthReportPage = (params) => getRequest('/production/pack-prd-month-report/page', params);
export const productionPackPrdMonthReportGetData = (params) => getRequest('/production/pack-prd-month-report/get-data', params);

// 成品入库申请
export const productionPackageApplyInStorageCreate = (params) => postRequest('/production/package-apply-in-storage/create', params);
export const productionPackageApplyInStorageUpdate = (params) => putRequest('/production/package-apply-in-storage/update', params);
export const productionPackageApplyInStorageGet = (params) => getRequest('/production/package-apply-in-storage/get', params);
export const productionPackageApplyInStoragePage = (params) => postRequest('/production/package-apply-in-storage/page', params);
export const spinWarehousePage = (params) => getRequest('/spin/warehouse/page', params);
export const spinPositionPage = (params) => getRequest('/spin/position/page', params);
export const productionPackageApplyInStorageSubmit = (params) => postRequest('/production/package-apply-in-storage/submit', params);
export const productionPackageApplyInStorageClearSubmit = (params) => postRequest('/production/package-apply-in-storage/clear-submit', params);

export const productionPackageApplyInStorageGetData = (params) => getRequest('/production/package-apply-in-storage/get-data', params);
export const productionPackageApplyInStorageCount = (params) => getRequest('/production/package-apply-in-storage/count', params);
export const productionProcessPrdNoticeGetByBatchProductColor = (params) => getRequest('/production/process/prd-notice/get-by-batch-product-color', params);

// 成品入库单
export const productionPackageInStorageGet = (params) => getRequest('/production/package-in-storage/get', params);
export const productionPackageInStorageUpdate = (params) => putRequest('/production/package-in-storage/update', params);
export const productionPackageInStorageAudit = (params) => postRequest('/production/package-in-storage/audit', params);
export const productionPackageInStorageClearAudit = (params) => postRequest('/production/package-in-storage/clear-audit', params);

export const productionLabellingMachineRecordGetPlan = (params) => getRequest('/production/labelling-machine-record/get-plan', params);
